

int percentageLetter(char *s, char letter)
{
    int n = strlen(s);
    int i = 0;
    int number = 0;
    while (i < n)
    {
        if (s[i] == letter)
        {
            number++;
        }
        i++;
    }
    return number * 100 / n;
}